package com.mobimap.nhom9.gui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;

public class Tim_Duong extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tim_duong);
		
		
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main,menu);
		return true;
	}
	
	@Override
    public boolean onOptionsItemSelected(MenuItem item) {
    	switch(item.getItemId())
    	{
    		case R.id.menu_home:
    			Intent it_home = new Intent(getApplicationContext(),MainActivity.class);
    			startActivity(it_home);
    			return true;
    		case R.id.menu_timDiaChi:
    			Intent it_timDiaChi = new Intent(getApplicationContext(),Tim_Dia_Chi.class);
    			startActivity(it_timDiaChi);
    			this.finish();
    			return true;
    		case R.id.menu_timDichVu:
    			Intent it_timDichVu = new Intent(getApplicationContext(),Tim_Dich_Vu.class);
    			startActivity(it_timDichVu);
    			return true;
    		case R.id.menu_timDuong:
    			Intent it_timDuong = new Intent(getApplicationContext(),Tim_Duong.class);
    			startActivity(it_timDuong);
    			return true;
    		case R.id.menu_Exit:
    			finish();
    			return true;
			default:
				return super.onOptionsItemSelected(item);
    	}
    	
    }
}
